use MediaWiki\Auth\AuthManager;
use MediaWiki\Logger\LoggerFactory;
-use Psr\Log\LogLevel;
/**
* Implements Special:UserLogin
# Run any hooks; display injected HTML if any, else redirect
$injected_html = '';
- Hooks::run( 'UserLoginComplete', [ &$user, &$injected_html ] );
+ Hooks::run( 'UserLoginComplete', [ &$user, &$injected_html, $direct ] );
if ( $injected_html !== '' || $extraMessages ) {
$this->showSuccessPage( 'success', $this->msg( 'loginsuccesstitle' ),
}
protected function logAuthResult( $success, $status = null ) {
- LoggerFactory::getInstance( 'authmanager-stats' )->info( 'Login attempt', [
+ LoggerFactory::getInstance( 'authmanager' )->info( 'Login attempt', [
'event' => 'login',
'successful' => $success,
'status' => $status,